package com.young.springdemo.service.expression;
//复杂连接节点
public class AndNode extends AbstractExpression {
    private AbstractExpression left;
    private AbstractExpression right;

    public AndNode(AbstractExpression left, AbstractExpression right) {
        this.left = left;
        this.right = right;
    }

    @Override
    public String interrupt() {
        return left.interrupt()+"再"+right.interrupt();
    }
}
